package com.ruoyi.gd.invoice.service;

import com.ruoyi.gd.invoice.domain.ZInvoice;
import com.ruoyi.gd.invoice.domain.vo.ZInvoiceVo;
import com.ruoyi.gd.invoice.domain.bo.ZInvoiceBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 发票Service接口
 *
 * @author ruoyi
 * @date 2024-07-24
 */
public interface IZInvoiceService {

    /**
     * 查询发票
     */
    ZInvoiceVo queryById(String number);

    /**
     * 查询发票列表
     */
    TableDataInfo<ZInvoiceVo> queryPageList(ZInvoiceBo bo, PageQuery pageQuery);

    /**
     * 查询发票列表
     */
    List<ZInvoiceVo> queryList(ZInvoiceBo bo);

    /**
     * 新增发票
     */
    Boolean insertByBo(ZInvoiceBo bo);

    /**
     * 修改发票
     */
    Boolean updateByBo(ZInvoiceBo bo);

    /**
     * 校验并批量删除发票信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    int jxFj(String id);
}
